package okl.lab.namesFilter.controller.events
{
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	/**
	 * 	Requesting users from server and 
	 *	@author "oleksandr.kulinchenko@gmail.com"
	 */
	public class UsersEvent extends Event
	{
		public static const LOAD:String = "load";
		public static const UPDATED:String = "updated";
		public function UsersEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		
		/**
		 * Service result payload
		 */
		public var users:ArrayCollection/*<User*/;
		
		override public function clone():Event{
			var event:UsersEvent = new UsersEvent(type);
			event.users = users;
			return event;
		}
	}
}